﻿using System.Windows.Controls;
using System.Windows.Input;

namespace MoviePlayer.User_Controls
{
    public class CustomSlider : Slider
    {
        public CustomSlider()
            : base()
        {
            DefaultStyleKey = typeof(Slider);
        }

        public event MouseButtonEventHandler SliderMouseLeftButtonDown;
        public event MouseButtonEventHandler SliderMouseLeftButtonUp;

        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
        }

        public virtual void OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            SliderMouseLeftButtonDown(sender, e);
        }
        public virtual void OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            SliderMouseLeftButtonUp(sender, e);
        }
    }
}